package picoevo.tools;


public class Utils {

	// Draw n, a random value, and return 10^n. 
	// n in [__nMin,__nMax[, n is a real value.
	public static double getRandomPow( double __nMin, double __nMax )
	{
		double range = __nMax - __nMin;
		double power = Math.random() * range + __nMin;
		double result = Math.pow(10, power);
		//Display.critical("10^"+power+" = "+result); // debug
		return result;
	}	
}
